From dc74142c5a0300e33c1d478c63d0fbdf06ed49a2 Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Fri, 27 May 2011 08:56:47 +0100 Subject: [PATCH] xen/x86: Add -Wnested-externs to CFLAGS This will catch any new extern declarations that happen actually inside function bodies. Unfortunately there's no equivalent warning for extern declarations at rootl level in .c files. Signed-off-by: Tim Deegan --- xen/arch/x86/Rules.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk index c15df0281e..bf77aef8b2 100644 --- a/xen/arch/x86/Rules.mk +++ b/xen/arch/x86/Rules.mk @@ -27,6 +27,7 @@ CFLAGS += -I$(BASEDIR)/include/asm-x86/mach-default CFLAGS += -msoft-float $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) +$(call cc-option-add,CFLAGS,CC,-Wnested-externs) ifeq ($(supervisor_mode_kernel),y) CFLAGS += -DCONFIG_X86_SUPERVISOR_MODE_KERNEL=1 -- 2.30.2